
class QznnVO {
  /**
   * 框架名称
  */
  public gameName: string = "QznnVO";
  public static VO: QznnVO = null;
  public static getVo(): QznnVO {
    if (!QznnVO.VO) {
      QznnVO.VO = new QznnVO();
    }
    return QznnVO.VO;
  }
  //是否点击过换桌。 点击换桌时 3-102踢人不关游戏界面，换桌失败或者开局重置变量
  public huanzhuoClick = false;

  public wTableID: number;
  public wChairID: number;
  //金币
  public lUserScore: number;
  // 输赢分
  public table_win = [];
  public my_win: number = null;
  public left_win: number = null;
  public right_win: number = null;
  public up_win: number = null;

  public myReadyStatus = 0;
  public myGameStatus = 0;

  public roomChairNum: string;
  public roomNum: string;
  public servertype: string;
  public rule: string;

  public leftChairID: number = null;
  public leftID = 2;
  public leftSource: number = null;
  public leftName = "爷是左"
  public leftGlod = 888888;
  public leftReadyStatus: number = 99;

  public leftRushVillageStatus = 0;
  public leftCallScoreStatus = 0;
  public leftLookCardsStatus = false;
  public leftPoker_DDZList = [1, 1, 1, 1, 1];
  public leftPoker_DDZType = 2;
  public leftThisTimeScore = 999;

  public rightChairID: number = null;
  public rightID = 3;
  public rightSource: number = null;
  public rightName = "爷是右"
  public rightGlod = 888888;
  public rightReadyStatus: number = null;

  public rightRushVillageStatus = 0;
  public rightCallScoreStatus = 0;
  public rightLookCardsStatus = false;
  public rightPoker_DDZList = [1, 1, 1, 1, 1];
  public rightPoker_DDZType = 3;
  public rightThisTimeScore = 999;

  public upChairID: number = null;
  public upID = 5;
  public upSource: number = null;
  public upName = "爷是上"
  public upGlod = 888888;
  public upReadyStatus: number = null;

  public upRushVillageStatus = 0;
  public upCallScoreStatus = 0;
  public upLookCardsStatus = false;
  public upPoker_DDZList = [1, 1, 1, 1, 1];
  public upPoker_DDZType = 5;
  public upThisTimeScore = 999;

  //桌子  
  public wTableId_up: number;
  public wTableId_0: number;
  public wTableId_1: number;
  public wTableId_2: number;
  public wTableId_3: number;
  public wTableId_4: number;

  //状态
  public status_0: number;
  public status_1: number;
  public status_2: number;
  public status_3: number;




  //房间公共变量

  public typeAni: number = 0;
  public difen: number = 1;
  public zhuangID: number = 99;//庄家ID

  public isReadyStage = false;//是否准备阶段
  public isRushVillageStage = false;//是否抢庄阶段
  public isCallScoreStage = false;//是否叫分阶段
  public isLookCards = false;//是否翻牌阶段

  public upReadyUser = 1;//上次准备ID
  public readyCountDown = 15;//准备倒计时
  public upRushVillageUser = 1;//上次抢庄ID
  public rushVillageCountDown = 15;//抢庄倒计时
  public upCallScoreUser = 1;//上次叫分ID
  public callScoreCountDown = 15;//叫分倒计时
  public upLookCardsUser = 1;//上次翻牌ID
  public lookCardsCountDown = 15;//翻牌倒计时

  public exitRoomUserId = 2;//本次离开房间的人的ID

  public otherPlayer: Array<any> = [];
  public sameTablePlayer: Array<any> = [];
  public handCard: Array<any> = [];

  public gameNumbering = "";
  public qiangzhuangtime: number = 9;
  public jiazhutime: number = 8;
  public tanpaitime: number = 9;
  public playerstate: Array<any> = [];
  public allplayerhandcard: Array<any> = [];
  public niutype: Array<any> = [];
  public zhuangChairId: number = 0;
  public selfNiuState: number = null;
  public RelinkTime: number = 0;

  public maxScore: number = 0;
  public bExit: boolean = true;
  // public TimeCallBanker: number = 0;
  // public TimeCallScore: number = 0;
  // public TimeOpenCard: number = 0;
  public initUserInof() {
    this.leftID = null;
    this.leftSource = null;
    this.leftName = ""
    this.leftGlod = null;
    this.leftReadyStatus = 0;

    this.rightID = null;
    this.rightSource = null;
    this.rightName = ""
    this.rightGlod = null;
    this.rightReadyStatus = 0;

    this.upID = null;
    this.upSource = null;
    this.upName = ""
    this.upGlod = null;
    this.upReadyStatus = 0;
  }

  public initGameInfo() {
    this.leftRushVillageStatus = 0;
    this.leftCallScoreStatus = 0;
    this.leftLookCardsStatus = false;
    this.leftPoker_DDZList = [1, 1, 1, 1, 1];
    this.leftPoker_DDZType = 2;
    this.leftThisTimeScore = 999;

    this.rightRushVillageStatus = 0;
    this.rightCallScoreStatus = 0;
    this.rightLookCardsStatus = false;
    this.rightPoker_DDZList = [1, 1, 1, 1, 1];
    this.rightPoker_DDZType = 3;
    this.rightThisTimeScore = 999;

    this.upRushVillageStatus = 0;
    this.upCallScoreStatus = 0;
    this.upLookCardsStatus = false;
    this.upPoker_DDZList = [1, 1, 1, 1, 1];
    this.upPoker_DDZType = 5;
    this.upThisTimeScore = 999;

    // this.difen = 1;
    this.zhuangID = 1;//庄家ID

    this.isReadyStage = false;//是否准备阶段
    this.isRushVillageStage = false;//是否抢庄阶段
    this.isCallScoreStage = false;//是否叫分阶段
    this.isLookCards = false;//是否翻牌阶段
    this.upReadyUser = 1;//上次准备ID
    this.readyCountDown = 15;//准备倒计时
    this.upRushVillageUser = 1;//上次抢庄ID
    this.rushVillageCountDown = 15;//抢庄倒计时
    this.upCallScoreUser = 1;//上次叫分ID
    this.callScoreCountDown = 15;//叫分倒计时
    this.upLookCardsUser = 1;//上次翻牌ID
    this.lookCardsCountDown = 15;//翻牌倒计时
    this.exitRoomUserId = 2;//本次离开房间的人的ID

    // this.myGameID = null;//游戏id
    // this.myUserID = null;//用户id
    // this.myScore = null;
    // this.myNickname = "";
    // this.roomChairNum = "";
    // this.roomNum = "";
    // this.servertype = "";
    // this.rule = "";

    this.otherPlayer = [];
    this.sameTablePlayer = [];
    this.handCard = [];

    this.qiangzhuangtime = 0;
    this.jiazhutime = 0;
    this.tanpaitime = 0;
    this.playerstate = [];
    this.allplayerhandcard = [];
    this.niutype = [];
    this.zhuangChairId = 0;
    this.selfNiuState = null;
    this.RelinkTime = 0;
    this.bExit = true;
  }
}
